<?php
declare(strict_types=1);

namespace App\Resource\RoomPK\RoomPK;


use Illuminate\Http\Resources\Json\JsonResource;

class RoomResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "room_id" => $this->id,
            "room_code" => $this->room_id,
            "room_name" => $this->room_name,
            "cover_picture" => $this->cover_picture,
            "popularity" => $this->score,
            "pk_status" => $this->pk_status,
        ];
    }

}